//
// Created by Administrator on 2024/10/25.
//
#include "../model/pool.h"
#include <nlohmann/json.hpp>
#include "../model/client.h"
#include "../model/pool.h"
#include "../model/model.h"
#include "../utils/Configuration.h"
#include <nlohmann/json.hpp>
#include <mysql_driver.h>
#include <mysql_connection.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/resultset.h>
#include <iostream>
#include <format>
#include "../constant/ArchiveEnumStatus.h"

class ResourcesProcessor
{
public:
    ResourcesProcessor();
    std::vector<DicomArchive> getList(std::string &request_id);
    bool create(std::string &request_id,std::string &hosp_code ,std::string &study_instance_uid);
    bool update(const DicomArchive &arc);
private:
    ConnectionPool * pool;
};
